<div style="width: 100%; margin-top: 20px; margin-bottom: 10px;">
    <a style="display: block; float: left; padding: 10px; border: 1px solid; margin-right: 10px; background-color: #B1B0B0;" href="<?= Yii::app()->controller->createUrl('/admin/tariff_lots_orders');?>">Дополнительные лоты</a>
    <a style="display: block; float: left; padding: 10px; border: 1px solid; margin-right: 10px; background-color: #B1B0B0;" href="<?= Yii::app()->controller->createUrl('/admin/tariff_lots_orders/pending_list');?>">Заказы дополнительных лотов</a>
    <a style="display: block; float: left; padding: 10px; border: 1px solid; margin-right: 10px; background-color: #B1B0B0;" href="<?= Yii::app()->controller->createUrl('/admin/tariff_lots_orders/approved_list');?>">Утвержденные дополнительные лоты</a>
    <a style="display: block; float: left; padding: 10px; border: 1px solid; margin-right: 10px;" href="<?= Yii::app()->controller->createUrl('/admin/tariff_lots_orders/rejected_list');?>">Отклоненные дополнительные лоты</a>
    <div style="clear: both;"></div>
</div>

<div>
<?php

    $this->widget('zii.widgets.grid.CGridView', array
    (
	'enableSorting' => false,
        'dataProvider' => $oDataProvider,
        'columns'      => array
        (
            array(
                'name' => 'tariff_plans_buy_lot_id',
                'htmlOptions' => array('class' => 'center'),
                'value' => '$data->tariff_plans_buy_lot_id'
            ),
            array(
                'type'        => 'raw',
                'htmlOptions' => array('class' => 'center'),
                'value'       => 'CHtml::link($data->user->user_login, array("/admin/users/details", "user_id" => $data->user_id))'
            ),
            array
            (
                'name' => 'user.profile.legal_name',
                'htmlOptions' => array('class' => 'center'),
                'value' => '$data->user->profile->legal_name'
            ),
            array(
                'type'        => 'raw',
                'htmlOptions' => array('class' => 'center'),
                'value' => 'CHtml::link($data->tariffPlan->name." #".$data->tariff_plan_id, array("/admin/tariff_orders/details", "tariff_plan_id" => $data->tariff_plan_id))'
            ),
            array(
                'name' => 'date_created',
                'htmlOptions' => array('class' => 'center'),
                'value' => 'date("d-m-Y H:i", strtotime($data->date_created))'
            )
        ),
        'cssFile' => false,
        'pager'   => array
        (
            'cssFile' => false,
            'header'  => ''
        ),
        'summaryText'     => '<div class="fl">Показаны {start}-{end} из {count} результатов.</div>'
    ));

?>
</div>